+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
+Wed Jan 27 23:05:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtklayout.[ch] (gtk_layout_realize): Move
+ gravity_works back to a static global variable,
+ since it is a global constant, and this way we
+ keep structure sizes uniform.
+
Wed Jan 27 22:59:07 1999 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (static_SOURCES): Move gtkintl.h
static GtkWidgetClass *parent_class = NULL;
+static gboolean gravity_works;
/* Public interface
*/
gdk_window_add_filter (widget->window, gtk_layout_main_filter, layout);
gdk_window_add_filter (layout->bin_window, gtk_layout_filter, layout);
- layout->gravity_works = gdk_window_set_static_gravities (layout->bin_window, TRUE);
+ /* XXX: If we ever get multiple displays for GTK+, then gravity_works
+ * will have to become a widget member. Right now we just
+ * keep it as a global
+ */
+ gravity_works = gdk_window_set_static_gravities (layout->bin_window, TRUE);
tmp_list = layout->children;
while (tmp_list)
if (dx > 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_resize (layout->bin_window,
widget->allocation.width + dx,
}
else if (dx < 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_move_resize (layout->bin_window,
dx, 0,
if (dy > 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_resize (layout->bin_window,
widget->allocation.width,
}
else if (dy < 0)
{
- if (layout->gravity_works)
+ if (gravity_works)
{
gdk_window_move_resize (layout->bin_window,
0, dy,
gint scroll_y;
guint freeze_count;
-
- guint gravity_works : 1;
};
struct _GtkLayoutClass {